<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="row">
	<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-right">
		<t-auth:roleButton />
	</div>
</div>
<script type="text/javascript">
function adjustmentDebt(){
	var customerId=$("#customerId").val();
	//alert(customerId);
	top.openModal("/shop/customerRecord/customerRecordDetailed?customerId="+customerId+"&type="+"add","customerRecord_form","调整欠款详情-添加",600,185);

}

function selData(){
	var id=getKeyId();
	var type=$(".cntable.table>tbody>tr.select-tr").attr("data-type");
	var operateId=$(".cntable.table>tbody>tr.select-tr").attr("data-operateId");
	if(isEditor(id)){
		switch(type)
		{
		case 'openBill':
			top.openModal("/billing/billing/detailed?key="+operateId+"&type="+"check","billing_form","订单详情-查看",1100,550);
		  break;
		case 'modify':
			top.openModal("/billing/billing/detailed?key="+operateId+"&type="+"check","billing_form","订单详情-查看",1100,550);
		  break;
		case 'returnCheck':
			top.openModal("/billing/billing/detailed?key="+operateId+"&type="+"check","billing_form","订单详情-查看",1100,550);
		  break;
		case 'returnOfCargoModify':
			top.openModal("/billing/returnOfCargo/detailed?key="+operateId+"&type="+"check","returnOfCargo_form","退货单-查看",1100,550);
		  break;
		case 'close':
			top.openModal("/billing/close/detailed?key="+operateId+"&type="+"check","close_form","关闭详情-查看",1100,550);
		  break;
		case 'returnCargo':
			top.openModal("/billing/returnCargo/returnCargoDetailed?key="+operateId+"&type="+"check","returnCargo_form","退欠货订单详情-查看",1100,550);
		  break;
		case 'returnOfCargo':
			top.openModal("/billing/returnOfCargo/detailed?key="+operateId+"&type="+"check","returnOfCargo_form","退货单-查看",1100,550);
		  break;
		case 'pay':
			top.openModal("/shop/payment/paymentDetailed?key="+operateId+"&type="+"check","payment_form","收款详情-查看",650,243);
		  break;
		case 'refund':
			top.openModal("/shop/payment/paymentDetailed?key="+operateId+"&type="+"check","payment_form","退款详情-查看",650,243);
		  break;
		default:
			$.showTips("此次记录无法查看！",1000,"warning");
		}
	}
}

</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
